Component({
    properties: {
        size: {
            type: Number,
            value: 750,
            observer: function(t) {
                2 == t ? this.setData({
                    swiperHeight: 1e3
                }) : this.setData({
                    swiperHeight: 750
                });
            }
        },
        imgList: {
            type: Array,
            observer: function(t) {}
        },
        videoList: {
            type: Array
        }
    },
    lifetimes: {
        attached: function() {
            var t = this;
            wx.getNetworkType({
                success: function(e) {
                    console.log(e), "wifi" == e.networkType ? t.setData({
                        autoplay: !0,
                        isVoice: !0
                    }) : t.setData({
                        autoplay: !1,
                        isVoice: !1
                    });
                }
            });
        }
    },
    data: {
        current: 0,
        muted: !0,
        autoplay: !1,
        swiperHeight: 750,
        isVoice: !1
    },
    methods: {
        swiperChange: function(t) {
            this.setData({
                current: t.detail.current
            });
        },
        changeSound: function() {
            this.setData({
                muted: !this.data.muted
            });
        },
        showVoice: function() {
            this.setData({
                isVoice: !0
            });
        }
    }
});